﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FileSystem
{
    public class StaticValue
    {
        private static string myDocumentsPath = Environment.CommandLine.Replace("\"", "").Replace("/", "\\");

        #region 获取运行目录
        /// <summary>
        /// 获取运行目录(不包含\)
        /// </summary>
        public static string AppPath
        {
            get { return myDocumentsPath.Substring(0, myDocumentsPath.LastIndexOf(@"\")); }
        }
        #endregion

        #region 获取运行上级目录
        /// <summary>
        /// 获取运行上级目录
        /// </summary>
        public static string AppPathUp
        {
            get { return AppPath.Substring(0, AppPath.LastIndexOf(@"\")); }
        }
        #endregion

    }
}
